COPY
Section: User Commands (1)
Updated: June 9, 1989
Index
Return to Main Contents
NAME
copy, paste - provide copying and pasting from command line
SYNOPSIS
/usr/bin/copy
/usr/bin/paste
[
-Prefer {ascii | rtf | ps}
]
DESCRIPTION
copy
takes the standard input and places it in the NEXTSTEP(tm)
pasteboard (for more information on the pasteboard and pasteboard
data types
see the NeXT Developer's Library,
accessible through the NeXT Developer target of the Digital Librarian).
The input is placed in the pasteboard as
ASCII data unless it begins with the
Adobe Systems Encapsulated PostScript
file header or the Microsoft Rich Text Format
file header, in which case it is placed
in the pasteboard as one of those data types.
paste
removes the data from the pasteboard and writes it to
the standard output. It normally looks first for ASCII
data in the pasteboard and writes that to the standard output;
if no ASCII data is in the pasteboard it looks for
Encapsulated PostScript; if no EPS if present it looks
for Rich Text. If none of those types is present in the
pasteboard, paste produces no output.
OPTIONS
- -Prefer {ascii | rtf | ps}
-
tells
paste
what type of data to look for in the pasteboard first.
As stated above,
paste
normally looks first for ASCII data; however, by
specifying
-Prefer ps
you can tell
paste
to look first for Encapsulated
PostScript. If you specify
-Prefer rtf,
paste
looks first for Rich Text format. In any case,
paste
looks for the other formats if the preferred one is not
found.
BUGS
There is no way to tell
paste
to get
only
a specified data type.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 17:18:45 GMT, March 25, 2025